import { GETMOVIE } from "../constents/movieConst"

const init={
    movie:[]
}
export const movieReducer =(prevState=init,action)=>{
    const{
        type,
        data
    }=action
    switch(type){
        case GETMOVIE:
            return{...init,movie:data.data.list}
    }
    
    
return prevState
}